<?php
/**
 * Created by PhpStorm.
 * User: Digvijay
 * Date: 3/22/14
 * Time: 6:39 PM
 */

class Response implements JsonSerializable {
    private $status;
    private $message;
    private $errorMessage;

    /**
     * @param mixed $status
     */
    public function setStatus($status) {
        $this->status = $status;
    }

    /**
     * @return mixed
     */
    public function getStatus() {
        return $this->status;
    }

    /**
     * @param mixed $message
     */
    public function setMessage($message) {
        $this->message = $message;
    }

    /**
     * @return mixed
     */
    public function getMessage() {
        return $this->message;
    }

    /**
     * @param mixed $errorMessage
     */
    public function setErrorMessage($errorMessage) {
        $this->errorMessage = $errorMessage;
    }

    /**
     * @return mixed
     */
    public function getErrorMessage() {
        return $this->errorMessage;
    }

    public function jsonSerialize() {
        return (object)get_object_vars($this);
    }
} 